using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ApplyResetPawRequest : GeneratedMessageLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>
		{
			private bool resultIsReadOnly;
			private ApplyResetPawRequest result;
			protected override ApplyResetPawRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ApplyResetPawRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ApplyResetPawRequest DefaultInstanceForType
			{
				get
				{
					return ApplyResetPawRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public int Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public string ResetInfo
			{
				get
				{
					return this.result.ResetInfo;
				}
				set
				{
					this.SetResetInfo(value);
				}
			}
			public uint GetMethod
			{
				get
				{
					return this.result.GetMethod;
				}
				set
				{
					this.SetGetMethod(value);
				}
			}
			public Builder()
			{
				this.result = ApplyResetPawRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ApplyResetPawRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ApplyResetPawRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ApplyResetPawRequest other = this.result;
					this.result = new ApplyResetPawRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ApplyResetPawRequest.Builder Clear()
			{
				this.result = ApplyResetPawRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ApplyResetPawRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ApplyResetPawRequest.Builder(this.result);
				}
				return new ApplyResetPawRequest.Builder().MergeFrom(this.result);
			}
			public override ApplyResetPawRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ApplyResetPawRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is ApplyResetPawRequest)
				{
					return this.MergeFrom((ApplyResetPawRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ApplyResetPawRequest.Builder MergeFrom(ApplyResetPawRequest other)
			{
				return this;
			}
			public override ApplyResetPawRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ApplyResetPawRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ApplyResetPawRequest._applyResetPawRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ApplyResetPawRequest._applyResetPawRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasType = input.ReadInt32(ref this.result.type_);
							continue;
						}
						if (num3 == 26u)
						{
							this.result.hasResetInfo = input.ReadString(ref this.result.resetInfo_);
							continue;
						}
						if (num3 == 32u)
						{
							this.result.hasGetMethod = input.ReadUInt32(ref this.result.getMethod_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ApplyResetPawRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ApplyResetPawRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ApplyResetPawRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ApplyResetPawRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ApplyResetPawRequest.Builder SetType(int value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public ApplyResetPawRequest.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0;
				return this;
			}
			public ApplyResetPawRequest.Builder SetResetInfo(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasResetInfo = true;
				this.result.resetInfo_ = value;
				return this;
			}
			public ApplyResetPawRequest.Builder ClearResetInfo()
			{
				this.PrepareBuilder();
				this.result.hasResetInfo = false;
				this.result.resetInfo_ = "";
				return this;
			}
			public ApplyResetPawRequest.Builder SetGetMethod(uint value)
			{
				this.PrepareBuilder();
				this.result.hasGetMethod = true;
				this.result.getMethod_ = value;
				return this;
			}
			public ApplyResetPawRequest.Builder ClearGetMethod()
			{
				this.PrepareBuilder();
				this.result.hasGetMethod = false;
				this.result.getMethod_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int TypeFieldNumber = 2;
		public const int ResetInfoFieldNumber = 3;
		public const int GetMethodFieldNumber = 4;
		private static readonly ApplyResetPawRequest defaultInstance;
		private static readonly string[] _applyResetPawRequestFieldNames;
		private static readonly uint[] _applyResetPawRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasType;
		private int type_;
		private bool hasResetInfo;
		private string resetInfo_ = "";
		private bool hasGetMethod;
		private uint getMethod_;
		private int memoizedSerializedSize = -1;
		public static ApplyResetPawRequest DefaultInstance
		{
			get
			{
				return ApplyResetPawRequest.defaultInstance;
			}
		}
		public override ApplyResetPawRequest DefaultInstanceForType
		{
			get
			{
				return ApplyResetPawRequest.DefaultInstance;
			}
		}
		protected override ApplyResetPawRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public int Type
		{
			get
			{
				return this.type_;
			}
		}
		public string ResetInfo
		{
			get
			{
				return this.resetInfo_;
			}
		}
		public uint GetMethod
		{
			get
			{
				return this.getMethod_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasType && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.Type);
				}
				if (this.hasResetInfo)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.ResetInfo);
				}
				if (this.hasGetMethod)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.GetMethod);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ApplyResetPawRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] applyResetPawRequestFieldNames = ApplyResetPawRequest._applyResetPawRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, applyResetPawRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasType)
			{
				output.WriteInt32(2, applyResetPawRequestFieldNames[3], this.Type);
			}
			if (this.hasResetInfo)
			{
				output.WriteString(3, applyResetPawRequestFieldNames[2], this.ResetInfo);
			}
			if (this.hasGetMethod)
			{
				output.WriteUInt32(4, applyResetPawRequestFieldNames[1], this.GetMethod);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasResetInfo)
			{
				num ^= this.resetInfo_.GetHashCode();
			}
			if (this.hasGetMethod)
			{
				num ^= this.getMethod_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			ApplyResetPawRequest applyResetPawRequest = object_0 as ApplyResetPawRequest;
			return applyResetPawRequest != null && (this.hasBaseRequest == applyResetPawRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(applyResetPawRequest.baseRequest_))) && (this.hasType == applyResetPawRequest.hasType && (!this.hasType || this.type_.Equals(applyResetPawRequest.type_))) && (this.hasResetInfo == applyResetPawRequest.hasResetInfo && (!this.hasResetInfo || this.resetInfo_.Equals(applyResetPawRequest.resetInfo_))) && (this.hasGetMethod == applyResetPawRequest.hasGetMethod && (!this.hasGetMethod || this.getMethod_.Equals(applyResetPawRequest.getMethod_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>.PrintField("ResetInfo", this.hasResetInfo, this.resetInfo_, writer);
			GeneratedMessageLite<ApplyResetPawRequest, ApplyResetPawRequest.Builder>.PrintField("GetMethod", this.hasGetMethod, this.getMethod_, writer);
		}
		public static ApplyResetPawRequest ParseFrom(byte[] data)
		{
			return ApplyResetPawRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ApplyResetPawRequest MakeReadOnly()
		{
			return this;
		}
		public static ApplyResetPawRequest.Builder CreateBuilder()
		{
			return new ApplyResetPawRequest.Builder();
		}
		public override ApplyResetPawRequest.Builder ToBuilder()
		{
			return ApplyResetPawRequest.CreateBuilder(this);
		}
		public override ApplyResetPawRequest.Builder CreateBuilderForType()
		{
			return new ApplyResetPawRequest.Builder();
		}
		public static ApplyResetPawRequest.Builder CreateBuilder(ApplyResetPawRequest prototype)
		{
			return new ApplyResetPawRequest.Builder(prototype);
		}
		static ApplyResetPawRequest()
		{
			ApplyResetPawRequest.defaultInstance = new ApplyResetPawRequest().MakeReadOnly();
			ApplyResetPawRequest._applyResetPawRequestFieldNames = new string[]
			{
				"BaseRequest",
				"GetMethod",
				"ResetInfo",
				"Type"
			};
			ApplyResetPawRequest._applyResetPawRequestFieldTags = new uint[]
			{
				10u,
				32u,
				26u,
				16u
			};
			object.ReferenceEquals(micromsg.Proto.ApplyResetPawRequest.Descriptor, null);
		}
	}
}
